package com.example.administrator.myapplication;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

/**
 * Created by Administrator on 2018/1/2.
 */

public class sqlListDBConnect extends SQLiteOpenHelper {
    public sqlListDBConnect(Context context) {
        super(context, "NotPad",null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table note (noteID Integer primary key,noteName varchar(20),noteTime varchar(20),noteContent varchar(400))");
        Log.d("table create",null);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
